001 package videoautomat.contentcreator; 002 003 import sale.FormSheet; 004 import sale.FormSheetContentCreator; 005 import videoautomat.SaleProcessLogOn; 006 import videoautomat.contentcreator.stdactions.TransitWithAction; 007 import videoautomat.transition.LogOnFailTransition; 008 009 /** 010 * Content creator to add button with fail transition. 011 * @author Alexander Herrmann 012 * 013 */ 014 public class LogOnMFContentCreator extends FormSheetContentCreator { 015 016 /** 017 * Adds button to <code>FormSheet</code> that does the 018 * {@link videoautomat.transition.LogOnFailTransition} 019 * @param fs - <code>FormSheet</code> to be changed 020 */ 021 protected void createFormSheetContent(FormSheet fs) { 022 SaleProcessLogOn processLogOn = (SaleProcessLogOn) fs.getProcess(); 023 fs.getButton(FormSheet.BTNID_OK).setAction(new TransitWithAction(new LogOnFailTransition())); 024 } 025 026 }